#ifndef ASTROSCENE_H
#define ASTROSCENE_H

#include <QGraphicsSceneMouseEvent>
#include <QGraphicsScene>

class astroScene : public QGraphicsScene
{
        Q_OBJECT
public:
    astroScene(QObject* parent);
    QPixmap qp;// = new QPixmap;
    QImage image;
    QImage copyImage;
    void Search();
    double PixelIntensity(QRgb pixel);
    double SpotIntensity(int i, int j);
    void Load(QString filename);
    void Info();
    bool CheckRow(int i1, int i2, int j1, int j2);
    int nStarCount;
    double noise;
    QString strFilename;
protected:
    void mousePressEvent(QGraphicsSceneMouseEvent * mouseEvent);
public:
signals:
    void sigMouse(QPointF pos);
    void sigRGB(int x, int y, QRgb col);
    void sigStar(int x, int y);
    void sigfile(QString filename);
    void sigStarCount(int nCount);
    void sigStatus(QString stat);

};

#endif // ASTROSCENE_H
